package com.bawei.module_move.api

import com.bawei.lib_common.api.BaseApiServer
import com.bawei.lib_common.entriy.BaseResponse
import com.bawei.module_move.entriy.VideoMoveEntriyItem
import com.example.movie.entity.MovieTypeEntity
import retrofit2.http.GET
import retrofit2.http.Query

interface MoveApiServer :BaseApiServer {



    /**
     * 获取一级电影分类
     */
    @GET("/videotype/getMutilType")
    suspend fun getMutilType(): BaseResponse<List<MovieTypeEntity>>

    /**
     * 获取二级电影分类
     */
    @GET("/videotype/getMutilTypeByPid")
    suspend fun getMutilTypeByPid(@Query("pid") id: Int): BaseResponse<List<MovieTypeEntity>>

    //获取推荐的视频
    @GET("/videomulti/getRecommendMutilVideo")
    suspend fun getRecommendMultiVideo(@Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<VideoMoveEntriyItem>>

    //获取二级分类视频
    @GET("/videomulti/getMutilVideoByTypeId")
    suspend fun getMultiVideoByTypeId(@Query("typeid") typeId: Int, @Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<VideoMoveEntriyItem>>



}